* {
    margin: 0;
    padding: 0;
}

h3 {
    text-align: center;
    width: 1500px;
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #ccc;
    margin: 20px auto;
}

.direction {
    width: 1200px;
    height: auto;
    margin: 20px auto;
    box-shadow: 0 0 4px 0 #ccc;
}

.direction p {
    border-top: 1px solid #ccc;
}

.box {
    width: 200px;
    height: 100px;
    background-color: #ff0;
    animation: demo 7s linear 0s 6 none running;
    margin-bottom: 5px;
}

.normal {
    animation-direction: normal;
}

.reverse {
    animation-direction: reverse;
}

.alternate {
    animation-direction: alternate;
}

.alternate-reverse {
    animation-direction: alternate-reverse;
}

@keyframes demo {
    from {
        margin-left: 0px;
    }

    to {
        margin-left: 1000px;
    }
}

@-webkit-keyframes demo {
    from {
        margin-left: 0px;
    }

    to {
        margin-left: 1000px;
    }
}